<template>
  <div>
    <ul class="navList" v-for="item in list" :key="item">
      <li @click="goToList(item.path)">{{ item.name }}</li>
    </ul>
  </div>
</template>

<script>
// import { viewTar } from "../../api/manage";

export default {
  setup() {
    // 显示栏api
    let list = [{ name: "", path: "" }];
    // viewTar().then((res) => {
    //   if (res?.data) {
    //     list = res.data.list;
    //   }
    // });
    function goToList(path) {
      console.log(path);
    }
    return { list, goToList };
  },
};
</script>
<style scoped>
.navList {
  border: 1px solid black;
}
</style>